<?
include "conf/db_connect.php";
$user = mysql_fetch_array(mysql_query("select * from membri where activation = '{$_GET['id']}'"));
if($user['activ'] != 1){
	mysql_query("update membri set activ = '1' where activation = '{$_GET['id']}'");
	header("Location:".$CS."account-activated.php");
}else{
	header("Location:".$CS."account-activated.php?err=1");
}
?>